<?php

namespace handle\message\lib\globals;

use auxiliary\traits\Singleton;
use handle\message\lib\socket\SocketHandler;

class System
{
    use Singleton;

    private SocketHandler $connection;


    public function setConnection(SocketHandler $connection): System
    {
        $this->connection = $connection;
        return $this;
    }

    public function getConnection(): SocketHandler
    {
        return $this->connection;
    }
}